package com.kanshu.ksgb.fastread.doudou.common.business.ad.presenter

import com.kanshu.ksgb.fastread.doudou.app.constants.UrlConfig
import com.kanshu.ksgb.fastread.doudou.common.business.ad.AdRequestParams
import com.kanshu.ksgb.fastread.doudou.common.net.bean.BaseResult
import com.kanshu.ksgb.fastread.doudou.common.net.retrofit.FormObjConverterFactory
import com.kanshu.ksgb.fastread.doudou.common.net.retrofit.Obj
import io.reactivex.Observable
import retrofit2.http.*

/**
 * Title:
 * Description:
 * Copyright: Copyright(c)2018
 * Company: 看书网
 * CreateTime: 2018/6/5 9:49
 *
 * @author EvanHe
 * @version 3.0
 */
interface AdService {

    @GET("yd/pvuv/appad")
    fun pVUVAdStatics(@Query(value = FormObjConverterFactory.PLACEHOLDER) @Obj params: AdRequestParams): Observable<BaseResult<String>>

    @GET("yd/pvuv/apponepagepv")
    fun pVUVstatics(@QueryMap map: Map<String, String?>): Observable<BaseResult<String>>

    /**
     * 书籍搜索统计
     * 使用的 UrlConfig.APP_HOST + "app/usersearch/add
     */
    @GET
    fun pVUVstaticsSearch(@Url url:String = UrlConfig.APP_HOST + "app/usersearch/add",@Query(value = "pv_uv_page_type") type: String, @Query("keyword") keyword: String): Observable<BaseResult<String>>


}